# encoding = utf-8
class CreateInfos < ActiveRecord::Migration
  def self.up
    create_table :infos do |t|
      t.integer :user_id
      t.string :name
      t.string :gender
      t.string :phone
      t.integer :building_id
      t.string :company_name
      t.string :tower
      t.string :floor
      t.integer :score
      t.integer :exp
      t.boolean :verified, :default => false

      t.timestamps
    end
    
    add_index :infos, :user_id,                :unique => false
    add_index :infos, :building_id,            :unique => false
  end

  def self.down
    drop_table :infos
  end
end
